Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns a singular constant that’s derived from a function. Selected via index.
function debug.getconstant(function: function | number, index: number): any
getconstant
function foo() return 123 end local constant = debug.getconstant(foo, 1) print(constant) --> 123